package com.coin900.coin.service.coin;

import com.coin900.coin.persist.coin.CoinTokenCoinVO;

import java.util.List;
import java.util.Map;

/**
 * 代币和币的换算比例
 *
 * @author shui
 * @create 2018-1-24
 */
public interface ICoinTokenCoinService {

    List<CoinTokenCoinVO> loadCoinTokenCoin(Map<String, Object> params);

    /**
     * 查询所有的代币和虚拟币的关系
     * 已经设置比例的显示比例
     *
     * @param params
     * @return
     */
    List<CoinTokenCoinVO> loadCoinTokenCoinAll(Map<String, Object> params);

    CoinTokenCoinVO getCoinTokenCoin(Map<String, Object> params);

    void insertCoinTokenCoin(CoinTokenCoinVO coinTokenCoinVO);

    void insertAndUpdateCoinTokenCoinBatch(List<CoinTokenCoinVO> tokenCoinList);

    void updateCoinTokenCoin(CoinTokenCoinVO coinTokenCoinVO);

    void deleteCoinTokenCoin(CoinTokenCoinVO coinTokenCoinVO);

}